package model

import (
	"openapi.itspire.cn/database"
)

type Category struct {
	Id   		 uint64 `json:"id"`
	Pid   		 uint64 `json:"pid"`
	TypeId       uint64 `json:"typeId"`
	CategoryName string `json:"categoryName"`
}

type CategoryArticle struct {
	Id   		 uint64 `json:"id"`
	CategoryName string `json:"categoryName"`
	Count 		 uint64	`json:"count"`
}

func (model Category) GetTableName() string {
	return database.Ins.NewScope(model).TableName()
}

